package com.wlz.principle.lod.wrong;


import com.wlz.principle.lod.Student;

import java.util.ArrayList;
import java.util.List;

public class SportsTeacher {
    //老师对学生发布命令， 清点一下女生
    public void commond(SportsCommissioner groupLeader){
        List listGirls = new ArrayList();
        //初始化女生
        for(int i=0;i<20;i++){
            listGirls.add(new Student());
        }
        //告诉体育委员开始执行清查任务
        groupLeader.countGirls(listGirls);
    }
}
